﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Acoris.Foundation
{
    using Acoris.Document;

    /// <summary>
    /// 表示一个操作单元
    /// </summary>
    public interface IOperationUnit
    {
        /// <summary>
        /// 获取当前操作的目标内容段
        /// </summary>
        IContentSegment Segment { get; }

        /// <summary>
        /// 获取当前修改的对象
        /// </summary>
        object Content { get; }

        /// <summary>
        /// 实现重做操作
        /// </summary>
        void Redo();

        /// <summary>
        /// 实现撤销操作
        /// </summary>
        void Undo();
    }
}
